<template>
    <view>
        <view class="container">
            <view class="header">
                <image class="header-image" src="https://ffa.firstui.cn/uploadfile/240729145525615.jpg"></image>
            </view>
        </view>
        <view class="content">
            <view class="item">
                <image class="item-image" src="https://ffa.firstui.cn/uploadfile/240729145525615.jpg"></image>
                <text class="item-title">半斤芝栗饭</text>
                <text class="item-price">¥28.'00'</text>
                <button class="add-button" onTap="addItem">+</button>
            </view>
            <view class="item">
                <image class="item-image" src="https://ffa.firstui.cn/uploadfile/240729145525615.jpg"></image>
                <text class="item-title">半斤芝栗饭</text>
                <text class="item-price">¥28.'00'</text>
                <button class="add-button" onTap="addItem">+</button>
            </view>
        </view>
        <view class="comments">
            <text class="comment">对于本餐厅的芝栗饭小编还是很满意的,芒果炒饭也很好吃.</text>
        </view>
        <view class="footer">
            <text class="total-price">¥28.'00'</text>
            <button class="pay-button">支付</button>
        </view>
    </view>
</template>

<script>
	import {
		ref,
		onMounted
	} from 'vue';
	import {
		onShow,
		onLoad
	} from '@dcloudio/uni-app';
	import {
		onPullDownRefresh,
		onReachBottom
	} from "@dcloudio/uni-app";
	
export default {
    data() {
        return {};
    },
    onLoad() {},
    methods: {}
};
</script>
<style>
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    width: 100%;
}
.header-image {
    width: 100%;
}
.content {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20rpx 0;
    padding: 20rpx;
    border: 1px solid #eaeaea;
    border-radius: 10rpx;
}
.item-image {
    width: 80rpx;
    height: 80rpx;
}
.item-title {
    flex: 1;
    margin-left: 20rpx;
    font-size: 30rpx;
}
.item-price {
    margin-right: 20rpx;
    font-size: 30rpx;
    color: #ff0000;
}
.add-button {
    width: 50rpx;
    height: 50rpx;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25rpx;
}
.comments {
    width: 100%;
    padding: 20rpx;
    background-color: #f9f9f9;
}
.comment {
    font-size: 28rpx;
    line-height: 1.5;
}
.footer {
    width: 100%;
    padding: 20rpx;
    background-color: #fff;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
}
.total-price {
    font-size: 36rpx;
    color: #ff0000;
}
.pay-button {
    background-color: #007bff;
    color: #fff;
    padding: 10rpx 20rpx;
    border-radius: 5rpx;
}

</style>
